CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

PROJECT(SFS)

ENABLE_TESTING()

ADD_EXECUTABLE(sfs
logger.cc logger.h
main.cc
path_utils.cc path_utils.h
source.cc source.h
switchfs.cc switchfs.h
)

SUBDIRS(
tests
)

ADD_DEFINITIONS(
-D_FILE_OFFSET_BITS=64
-DFUSE_USE_VERSION=25
-D_REENTRANT
)

SET_TARGET_PROPERTIES(sfs PROPERTIES COMPILE_FLAGS "-Wall -Werror -O2")

TARGET_LINK_LIBRARIES(sfs
fuse
)

INSTALL(TARGETS sfs RUNTIME DESTINATION bin)
